//
//  M1WsInfoView.m
//  NewMarryU
//
//  Created by apple on 2018/7/13.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1WsInfoView.h"

@implementation M1WsInfoView
-(instancetype)init{
    self = [super init];
    if (self) {
        _m1_titleLB = [[UILabel alloc]init];
        _m1_titleLB.textColor = m1_line_color;
        _m1_titleLB.font = m1_font(15);
        [self addSubview:_m1_titleLB];
        
        [_m1_titleLB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.offset(24);
            make.centerY.equalTo(self);
        }];
        
        _m1_TF = [[UITextField alloc]init];
        _m1_TF.textColor = [UIColor m1_colorHex:0x333333];
        _m1_TF.font = m1_font(15);
        [self addSubview:_m1_TF];
        
        [_m1_TF mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.offset(100);
            make.right.offset(-10);
            make.centerY.equalTo(self);
            make.height.equalTo(self);
        }];
        
        _m1_line = [[UIView alloc]init];
        _m1_line.backgroundColor = m1_line_color;
        [self addSubview:_m1_line];
        [_m1_line mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.bottom.right.offset(0);
            make.height.mas_offset(0.5);
        }];
        
        _m1_touchBtn = [UIButton buttonWithType:UIButtonTypeCustom];
        [self addSubview:_m1_touchBtn];
        [_m1_touchBtn mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.mas_offset(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
